/*
 * ConfigColumn.java
 *
 * Created on 22. listopad 2006, 12:18
 *
 */

package cz.results.winter6.view.browse.table;

import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;

public class ConfigColumn {
    
    /* nazev sloupce - dava se do zahlavi sloupce v tabulce */
    private String nazev="";
    /* renderer pro prislisny sloupec tabulky */
    private TableCellRenderer tableCellRenderer=null;
    /* editor pro prislusny sloupec tabulky */
    private TableCellEditor tableCellEditor=null;
    
    public ConfigColumn(String nazev, TableCellRenderer tableCellRenderer, TableCellEditor tableCellEditor) {
        setNazev(nazev);
        setTableCellRenderer(tableCellRenderer);
        setTableCellEditor(tableCellEditor);
    }
    
    public ConfigColumn(String nazev){
        this(nazev, null, null);
    }
   
    public String getNazev() {
        return nazev;
    }

    public void setNazev(String nazev) {
        this.nazev = nazev;
    }

    public TableCellRenderer getTableCellRenderer() {
        return tableCellRenderer;
    }

    public void setTableCellRenderer(TableCellRenderer tableCellRenderer) {
        this.tableCellRenderer = tableCellRenderer;
    }

    public TableCellEditor getTableCellEditor() {
        return tableCellEditor;
    }

    public void setTableCellEditor(TableCellEditor tableCellEditor) {
        this.tableCellEditor = tableCellEditor;
    }
}
